package com.threeox.commonlibrary.entity.engine.model.table;

import com.threeox.commonlibrary.R;
import com.threeox.commonlibrary.entity.engine.model.base.BaseModelMsg;
import com.threeox.utillibrary.util.res.IdHelper;
import com.threeox.utillibrary.util.res.LayoutHelper;
import com.threeox.utillibrary.util.res.StringHelper;

/**
 * 
 * @ClassName: TableModelMessage
 * 
 * @Description: TODO(表模型驱动的配置信息)
 * 
 * @author 赵屈犇
 * 
 * @date 创建时间: 2017/8/14 10:56
 * 
 * @version 1.0
 * 
 */
public class TableModelMessage extends BaseModelMsg {

    // 翻页的名称
    private String pageName;
    // 每页显示多少条
    private Integer pageNum;
    // 默认分页
    private boolean isLimit = true;

    // 最大行高(dp)
    private int maxRowHeight = 60;
    // 最小行高(dp)
    private int minRowHeight = 20;
    // 最大列宽(dp)
    private int maxColumnWidth = 100;
    // 最小列宽(dp)
    private int minColumnWidth = 70;
    // 数据为空时的缺省值
    private String nullableString = "N/A";
    //第一行背景颜色
    private int fristRowBackGroudColor = R.color.table_view_head_color;

    /*===============字体设置==============*/
    // 单元格字体大小
    private int textViewSize = 14;
    // 表格头部字体颜色
    private int tableHeadTextColor = R.color.beijin;
    // 表格内容字体颜色
    private int tableContentTextColor = R.color.border_color;
    /*===============字体设置==============*/

    // 是否锁定标题行
    private boolean isLockHeadRow = true;
    // 是否锁定首列
    private boolean isLockFristColumn = true;

    public void initData(StringHelper stringHelper, IdHelper idHelper, LayoutHelper layoutHelper) {
        super.initData(stringHelper, idHelper, layoutHelper);
    }

    public int getMaxRowHeight() {
        return maxRowHeight;
    }

    public void setMaxRowHeight(int maxRowHeight) {
        this.maxRowHeight = maxRowHeight;
    }

    public int getMinRowHeight() {
        return minRowHeight;
    }

    public void setMinRowHeight(int minRowHeight) {
        this.minRowHeight = minRowHeight;
    }

    public int getMaxColumnWidth() {
        return maxColumnWidth;
    }

    public void setMaxColumnWidth(int maxColumnWidth) {
        this.maxColumnWidth = maxColumnWidth;
    }

    public int getMinColumnWidth() {
        return minColumnWidth;
    }

    public void setMinColumnWidth(int minColumnWidth) {
        this.minColumnWidth = minColumnWidth;
    }

    public String getNullableString() {
        return nullableString;
    }

    public void setNullableString(String nullableString) {
        this.nullableString = nullableString;
    }

    public int getFristRowBackGroudColor() {
        return fristRowBackGroudColor;
    }

    public void setFristRowBackGroudColor(int fristRowBackGroudColor) {
        this.fristRowBackGroudColor = fristRowBackGroudColor;
    }

    public int getTextViewSize() {
        return textViewSize;
    }

    public void setTextViewSize(int textViewSize) {
        this.textViewSize = textViewSize;
    }

    public int getTableHeadTextColor() {
        return tableHeadTextColor;
    }

    public void setTableHeadTextColor(int tableHeadTextColor) {
        this.tableHeadTextColor = tableHeadTextColor;
    }

    public int getTableContentTextColor() {
        return tableContentTextColor;
    }

    public void setTableContentTextColor(int tableContentTextColor) {
        this.tableContentTextColor = tableContentTextColor;
    }

    public boolean isLockHeadRow() {
        return isLockHeadRow;
    }

    public void setIsLockHeadRow(boolean lockHeadRow) {
        isLockHeadRow = lockHeadRow;
    }

    public boolean isLockFristColumn() {
        return isLockFristColumn;
    }

    public void setIsLockFristColumn(boolean lockFristColumn) {
        isLockFristColumn = lockFristColumn;
    }

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public boolean isLimit() {
        return isLimit;
    }

    public void setIsLimit(boolean limit) {
        isLimit = limit;
    }
}
